#include <bits/stdc++.h>
using namespace std;
class Solution
{
public:
    int getSum(int a, int b)
    {
        while (b != 0)
        {
            int x = (a ^ b);
            unsigned int c = ((a & b) << 1);
            a = x;
            b = c;
        }
        return a;
    }
};